//
//  UIScrollView+CYScrollViewRefreshAnimation.m
//  SafetyInHand
//
//  Created by admin on 2022/7/27.
//

#import "UIScrollView+CYScrollViewRefreshAnimation.h"

#import "MJRefresh.h"

@implementation UIScrollView (CYScrollViewRefreshAnimation)


- (void)beginRefresh {
    [self.mj_header beginRefreshing];
}

- (void)endRefresh {
    [self.mj_header endRefreshing];
}

- (void)beginLoadMore {
    [self.mj_footer beginRefreshing];
}

- (void)endLoadMore {
    [self.mj_footer endRefreshing];
}

- (void)endAllAnimation {
    [self endRefresh];
    [self endLoadMore];
}

@end
